Question d’entretien chez Hexaware Technologies

Two questions about some random puzzles