By making a suitable chart, compare:
$$540276$$ and $$369998$$
$$5$$ $$4$$ $$0$$ $$2$$ $$7$$ $$6$$
$$3$$ $$6$$ $$9$$ $$9$$ $$9$$ $$8$$
Here, both the numbers have equal number of digits $$i.e. 6$$
At the leftmost, the first number has $$5$$ and the second number has $$3$$
Since $$ 5 > 3$$
$$540276$$ is greater than $$369998$$