Nepalese Prime Minister K.P. Sharma Oli resigned on Tuesday following violent anti-corruption protests in the country.