Pergunta de entrevista da empresa Scott Logic

An easy one-or-two line coding problem