Check pairs divisible by K

Problem: Given an array having even number of integers.
Find if the array has N / 2 pairs of integers such that each pair is divisible by a given number k.

Example: A normal approach would be to try all the pairs possible and see if the array holds the above property.
However, that would be a very costly approach in terms of efficiency and an O(n) solution is possible for this problem.