NDS interview question

Problem solving Puzzles