you are given these json need to find ouput like below for the input java ,
number denotes index postion in O(1)
output expected -
x: java->rank 1
u:java->rank 3
input jsons ,search word -java
"x":[java,c ,c#]
"y":[c ,python]
"z":[ruby,scala ,c#]
"u":[c ,sql,java]