BharatPe interview question

first : String to map convertion second : a leetcode sql question on join