Improbable interview question

pretty standard algorithm and data structures questions