Three-step process for the synthesis of favipiravir