Write the algorithm, using pseudocode, to do the following task, Given the string of numbers, recognize all the substrings which form numbers which are divisible by 3. For instance, applying algorithm on string 37540 make the following substrings (not necessarily in this order): 0; 3; 75; 54; 375; 540.