NNG interview question

Mid level algorithm questions