Didn't add condition for if the lengths are equal. Getting output if first/second is bigger than its next value, otherwise stuck and can't go ahead!