Tip 1 : Hold good problem-solving skills and knowledge of the core subjects mentioned above.
Tip 2 : Stay calm during the interview
Tip 3 : Solve 2-3 coding problems consistently on any platform
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.

The value of the sum can be very large, return the answer as modulus 10^9+7.
Step 1 : Fist give a simple brute-force approach
Step 2 : And then optimize it by applying the prefix sum
Tip 1 : Practice some SQL Queries to get a better understanding

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the best case time complexity of Bubble Sort?