Bridge Constructor Portal: Level 6 solution