I had a 2 rounds. 1 hour back to back.
1st round was life story. where the recruiter was interested to know how I became an engineer and my entire journey till now.
2nd round was a coding round. coderpad.
Question was that there are inputs array of the format ["date, item"] .
eg: intput[["10212021", popcorn], ["10222021", popcorn], ["10212021", soda],["10212021", popcorn],["10212021", soda]]
on the same day if there are popcorn and soda both purchased, then it costs 9 dollars as a bundled price. else soda is 2.5 dollars, popcorn is 8 dollars.
you need to calculate the total price based on these criteria and return that as output