1st question was basic coding question in which we had to check if we can obtain asked string from given string by swapping positions 2nd question was basic 0/1 knapsack problem 3rd question was to write sql query 4th question was related to java exceptions