Code challenges from Codility and Google I/O