Tandemloop screening test
Programming language used: Java 8
problem 1: Time complexity: O(1), Space Complexity: O(1)
problem 2: Time complexity: O(a), Space Complexity: O(1)
problem 3: Time complexity: O(a), Space Complexity: O(1)
problem 4: Time complexity: O(9n) ~~ O(n) n=number of elements in given input array, Space Complexity: O(n)