InputZero interview question

All are simple.