Problem 1 of BC Oxbridge CompSci