Question one:
Given by an array of flights, returns stops statement to use.
-flights:[{origin:'MEL', destination:'CAN'}]
-> 'direct'
-flights:[{origin:'MEL', destination:'CAN'}, {origin:'CAN', destination:'PVG'}]
-> '1 stop'
-flights:[{...}, {...},...,{...}]
-> 'n stops'
Question two
|Income thresholds| |Rate| |Tax payable on this income| |$0 - $18,200| |0%| |Nil| |$18,201 - $37,000| |19%| |19c for each $1 over $18,200| |$37,001 - $90,000| |32.5%| |$3,572 plus 32.5% of amounts over $37,000| |$90,001 - $180,000| |37%| |$20,797 plus 37% of amounts over $90,000| |$180,001 and over| |45%| |$54,096 plus 45% of amounts over $180,000|