79080141

Date: 2024-10-12 03:45:31
Score: 2
Natty:
Report link

You can iterate over the characters in the input string and add the position to an array which you can return.

An other possible solutions is to use regular expressions

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: baliman