Onto Continuous Map

Question

Let S be the collection of the following subsets: (0,1), [0,1], (0,1], [0,1), R.  Give an example of a continuous onto function (if exist or explain why it does not exist) from A to B where A and B are two elements in S.

If you find any mistakes please feel free to email me. rakesh@rjana.in