Min Moves to Obtain String Without 3 Identical Consecutive Letters - Company-specific OAs / Microsoft OA

https://algo.monster/problems/min_moves_no_three_consecutive_chars

Solution code does not consider if input string has no solution (e.g. abbbbbbbb)

Example 2 is wrong. The solution is copy pasted from example 1, but it wasn’t changed.