I have data of different items in a different restaurants
Rest Item Price
----------------------
ABC dosa 14
ABC idly
Calculate the possible price combinations: Iterate through the map and parse the strings. Store each price combination.
Filter out the more expensive prices.
Compare the remaining prices at each restaurant, and return the restaurant with the cheapest price.
You could also do some checks to minimise iterations, e.g: