Implement a method that takes an integer value and two lists of numbers. It must check if the value occurs the same number of times in both sequences.
Keep note however that you do not need to input any data yourself. The values are provided via arguments to the method checkTheSameNumberOfTimes for this task.
In the following example, the first line contains the value, the second line is the first list, the third line is another list.
All numbers are separated by whitespaces.