Soldiers from the British Army took part in a gruelling Gurkha race where they carried weighted baskets on an uphill course.