<prompt> Construct an algorithm to solve the given problem.Problem: Calculate the sum of all multiples of 3 and 5 between 1 and 100  <response>: 1. Initialize a variable total_sum to store the sum of multiples of 3 and 5, and set its value to 0.2. For every positive integer i in the range of 1 to 100: a. Check if i is divisible by 3 or 5 use the modulo operator to check for divisibility b. If i is divisible by either 3 or 5, add i to total_sum.3. After the loop, return the value of total_sum as the final result.pythontotal_sum 0for i in range1,101: if i 3 0 or i 5 0: total_sum ireturn total_sum 