There is political turmoil in Malaysia after the king accepted the resignation of Prime Minister Mahathir Mohamad.