one of the requirement for President of the United States is.. you have to be a citizen... and 35 years old...if say 99 out of 100 people voted for, through write-in, a 34 year old... citizen...and 1 vote for a 35 yeard old citizen..who is the winner of the presidential race?
How were the presidential electors in your State determined? In Texas, a write-in candidate for President must declare themseleves to be a candidate, and name their slate of electors. Only votes for declared write-in candidated are counted.
But let's say that the State overlooked the qualification of the candidate (since it is the electors being chosen, the nominal presidential candidates could just be considered a slogan or identification, just like the party name). Or the State may decline to make a ruling. So the electors meet in December and cast their vote for the 34 YO. Or maybe the State declares the votes invalid, and appoints the 35 YO candidate's slate as electors. The 34 YO candidate's electors might meet and cast their electoral votes and mount a challenge in Congress.
Congress counts the electoral votes. Counting is more than the mere artithmetic process, but could also consider the validity of ballots. In the past, Congress has considered not counting electoral votes of so-called faithless electors, but declined to act. In 1872, Horace Greeley died between the time of the popular election and when the electors voted. Most of the Democrat electors voted for someone else (4 candidates), but 3 went ahead and voted for Greeley. Congress rejected those 3 votes.
If Congress rejected the electoral votes for the 34 YO, then the election would go to the House of Representatives (the elected candidate must have a majority of the electors appointed, not of the electoral votes validly cast). They might then elect the 35 YO.
Or Congress might consider the 34 YO elected, but his age to be a temporary disablity. The Presidency would be vacant, with the Vice President acting as President until the young President's birthday.