Tredence interview question

puzzles from geeksforgeeks and guesstimates