Meta interview question

Two basic programming challenges