Hey, please provide the solution exactly in the format as asked in the question.

Hey, please provide the solution exactly in the format as asked in the question. Use Erlang language and do remember that the solution should work for various different test cases. Thanks.

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount