__________________________________________________

**Top Companies Interview Questions..-**

Microsoft | Amazon | more.. |

If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.

__________________________________________________

### Related Posts:

- Find two non-repeating numbers in an array in O(n) time and O(1) space
- Find the last repeating character in a given string.
- Find the two repeating elements in a given array | 6 Approaches
- Find the last non repeating character in a given string.
- Find the first repeating character in a given string
- Find the first non repeating character in a given string
- Find duplicates in an given array in O(n) time and O(1) extra space.
- Find the element which appears maximum number of times in the array.
- Goldbach’s Conjecture
- Find a Missing Number From a Sequence of Consecutive Numbers | XOR Method