- Provided there are two strings. Please write the code to check if the strings are anagrams of each other.
- Please output True if there are anagrams, and False if there are not.
- Given a single string input, please write the code to get the first character of the string that is repeated.
- Please output the first character if there are repeated characters.
- Please output None if there are no repeated characters.
- Suppose you are doing an online small bakery business and you want to collect your customer information to improve customer engagement for your business.
- Suppose you can collect customer information such as name, birthdate, gender, address, contact number and favorite item from your regularly available item list (pancakes, cupcakes, cheesecake, cookies donuts and croissant). Please make a form to collect the above information from your customers.
- Since your business has a lot of customers, please create a table to show the list of your customer information. A new row should be added to the table whenever a new record from the form is submitted (Each row is each customer’s information).
- Please create a feature that can filter customers by their favorite item field and show the result in the table so that you can easily see which customers have the same favorite item (i.e you can easily group the customers who like cheesecake).
- [Optional bonus point] Please create a feature that can - -- Filter customers who have birthdays in the current month so that you can give some discounts on their birthday month purchases to promote your sale. -- Sort the table by their birthdays to know whose birthday comes first in the current month so that you can decide on which customers you should prioritize for your sale promotion.