Amazon is building a way to help customers search reviews quicker by providing real-time suggestions to search terms when the customer starts typing. When given a minimum of two characters into the search field the system will suggest at most three keywords from the review word repository. As the customer continues to type in the reviews search bar the relevant keyword suggestions will update automatically.



Required:


Write an algorithm that will output a maximum of three keyword suggestions after each character is typed by the customer in the search field

Q&A Education