Pregunta de entrevista de Amazon

2 coding ques, mcqs for selecting based on choice