InterviewSolution
 Saved Bookmarks
    				| 1. | 
                                    Step 1. Arrange all cards in a single pile called Pile 1 Step 2. Maintain two variables A, B and initialize them to 0 and 1000 respectivelyStep 3. If Pile 1 is empty then stop the iteration and start from step 10Step 4. Read the top card in Pile 1Step 5. If the bill contains an item “Bananas” then execute step 7Step 6. If the bill does not contain an item “Bananas” then execute step 9Step 7. If Price of “Bananas” > A then store Price of “Bananas” in AStep 8. If Price of “Bananas” | 
                            
| Answer» | |