KQUERYO - SEGMENT

getting run error in test cases
ide: https://ide.codingblocks.com/s/234419