Consider the following scenario. Votes are being cast for a major election, but due to a lackof resources, only one computer is available to count the votes. Furthermore, this computeronly has enough space to store one vote at a time, plus a single extra integer. Each vote is asingle integer 0 or 1, denoting a vote for Candidate A and Candidate B respectively.(a) Come up with an algorithm to determine whether candidate A or B won, or if there wasa tie