Four contenders were in the race to replace Justin Trudeau for the top job in the Liberal Party and to become the next prime minister.