Scott Logic interview question

An easy one-or-two line coding problem