It was very easy.

Here is my code:

https://github.com/marinaruelas/WSQ/blob/master/wsq12

CC BY 4.0 Greatest common divisor by marinaruelas is licensed under a Creative Commons Attribution 4.0 International License.