Interplay between the Fulde-Ferrell-like phase and Larkin-Ovchinnikov phase in the superconducting ring pierced by an Aharonov-Bohm flux