Instruction: Given a query and a list of products denoted as A, B, C, ... with their titles, rank the products according to their relevance to the query. Output only a ranked list in which the most relevant product is at the top of the list.

Input:
Query: alexa echo 3rd generation
Product list:
A: Caramote Portable Battery Base for Amazon Echo (3rd Gen) and Echo Plus(2nd Generation), Battery Base Makes Them Portable,Not for Echo (2nd Generation) and Echo Plus(1st Generation)
B: Echo Dot (3rd Gen) - Smart speaker with Alexa - Charcoal
C: Echo Loop - Smart ring with Alexa - A Day 1 Editions product - Extra Large
Answer: B,A,C