apple pie's submission of Similar Heights | CodeChef