Softwire interview question

The coding test involved 3 simple tasks.