Ameyo interview question

programming in any language