I am having trouble finding the basis of $W$ with the span of a $W^{\perp}$ given. The problem in question is:
I understand how to find $W^{\perp}$ from $W$, but not this way around. The answer is the vector $$(1,1,1,1)$$ but I do not understand how come. If a question like this was to pop up in my exam, how could I solve it? Thanks a lot. I hope you guys can help me out!

You should know that $W\oplus W^\bot=V$, if $W$ is a vector subspace of $V$ with $\dim (V)=\dim(W)+\dim(W^\bot)$. The othogonal complement $W^\bot$ is unique. Therefore it doesn't matter, if you take $W$ and determine $W^\bot$ or if you take $W^\bot$ and determine $(W^\bot)^\bot=W$. The way to determine them is the same. I will give you the general idea of it:
Let $n$ be a positive integer and $\langle.,.\rangle$ be the scalar product of $\mathbb{K}^n$. Given $W$ a vector subspace of $\mathbb{K}^n$ by a generator $\{w_1,...,w_r\}$. We want to determine $W^\bot$.
Determine a basis $(v_1,...,v_r)$ von $W$ and the basis $(v_{r+1},...,v_n)$ of the complement of $W$ in $\mathbb{K}^n$, e.g. by the lemma of Steinitz.
Apply the Gram-Schmidt-process on the basis $(v_1,...,v_n)$ of $\mathbb{K}^n$.
Is $(u_1,...,u_n)$ the generated family by the process, then $(u_1,...,u_r)$ is the orthonormal basis of $W$ and $(u_{r+1},...,u_n)$ is the orthonormal basis of $W^\bot$.