Tredence Interview Question

puzzles from geeksforgeeks and guesstimates