The teenager, who cannot be named for legal reasons, was sentenced at Inverness High Court on Monday.