Strongly interacting confined quantum systems in one dimension