Principal Global Services Coding Round OA | Array Pair Frequency Logic | Recent Online Assessment 2026 | Repeating Integer Pairs

Question · Posted Mar 2026

Question: Repeating Integer Pairs Problem Statement: You are given a list of integers. Write a program which prints all the integer pairs in the list that repeat. If the list has more than one such pair, print all the pairs in consecutive lines in a sorted order. Sorting should be performed on the first integer of the pair. Read the input from STDIN and print the output to STDOUT. Do not write arbitrary strings while reading the input or while ...

The full answer & interview discussion are available to premium members.

Log in Create a free account