Andrey's submission of Lowest Common Ancestor | CodeChef